Page({
  data: {
    getNoticesList: []
  },

  async onLoad () {
    this.getNotices()
  },

  async getNotices () {
    const data = await wx.http.get('/announcement')
    if (data.code === 10000) {
      this.setData({
        getNoticesList: data.data
      })
    } else return wx.utils.toast()
  }
})
